/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.entity;

import cn.webrx.enums.GradeEnum;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>Project: mp2022 - Book
 * <p>Powered by webrx On 2022-04-16 09:51:28
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@Data @AllArgsConstructor @NoArgsConstructor @TableName("book")
public class Book {
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;
    private String name;
    private String author;
    private Double price;
    private GradeEnum grade;

    @TableLogic
    private Integer isdel;

    @Version
    private Integer ver;
}
